package com.bitrate.dagger.server.im.auth;

import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;

public class LocalCache {

	public static ConcurrentHashMap<String, String> dataMap = new ConcurrentHashMap<String, String>();

	public static CopyOnWriteArrayList<String> dataList = new CopyOnWriteArrayList<String>();

	public static void put(String key, String value) {
		dataMap.put(key, value);
	}

	public static void remove(String key) {
		dataMap.remove(key);
	}

	public static String get(String key) {
		return dataMap.get(key);
	}

	public static void add(List<String> strArr) {
		dataList.addAll(strArr);
	}

	public static Boolean contains(String str) {
		return dataList.contains(str);
	}

}
